package com.ruoyi.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.StaffExperienceMapper;
import com.ruoyi.system.api.domain.StaffExperience;
import com.ruoyi.system.service.IStaffExperienceService;

/**
 * 简历Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-08
 */
@Service
public class StaffExperienceServiceImpl implements IStaffExperienceService
{
    @Autowired
    private StaffExperienceMapper staffExperienceMapper;

    /**
     * 查询简历
     * 
     * @param experienceId 简历主键
     * @return 简历
     */
    @Override
    public StaffExperience selectStaffExperienceByExperienceId(Long experienceId)
    {
        return staffExperienceMapper.selectStaffExperienceByExperienceId(experienceId);
    }

    /**
     * 查询简历列表
     * 
     * @param staffExperience 简历
     * @return 简历
     */
    @Override
    public List<StaffExperience> selectStaffExperienceList(StaffExperience staffExperience)
    {
        return staffExperienceMapper.selectStaffExperienceList(staffExperience);
    }

    /**
     * 新增简历
     * 
     * @param staffExperience 简历
     * @return 结果
     */
    @Override
    public int insertStaffExperience(StaffExperience staffExperience)
    {
        return staffExperienceMapper.insertStaffExperience(staffExperience);
    }

    /**
     * 修改简历
     * 
     * @param staffExperience 简历
     * @return 结果
     */
    @Override
    public int updateStaffExperience(StaffExperience staffExperience)
    {

        return staffExperienceMapper.updateStaffExperience(staffExperience);
    }

    /**
     * 批量删除简历
     * 
     * @param experienceIds 需要删除的简历主键
     * @return 结果
     */
    @Override
    public int deleteStaffExperienceByExperienceIds(Long[] experienceIds)
    {
        return staffExperienceMapper.deleteStaffExperienceByExperienceIds(experienceIds);
    }

    /**
     * 删除简历信息
     * 
     * @param experienceId 简历主键
     * @return 结果
     */
    @Override
    public int deleteStaffExperienceByExperienceId(Long experienceId)
    {
        return staffExperienceMapper.deleteStaffExperienceByExperienceId(experienceId);
    }
}
